#ifndef TOOL_COMMON_H
#define TOOL_COMMON_H

#include <string.h>
#include <stdlib.h>
#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_err.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "driver/gpio.h"

#include "server_spiffs.h"

typedef enum {
    AP_DNS = 0,
    AP_STA,
} config_esp_module;

void set_config_module(config_esp_module type);
config_esp_module get_config_module(void);
esp_err_t set_sta_ssid_passwid(char *ssid, char *passwd);
esp_err_t get_sta_ssid_passwid(uint8_t *ssid, uint8_t *passwd);
esp_err_t get_wifi_ap_array(uint16_t *number, wifi_ap_record_t *ap_info, uint16_t *ap_count);



#endif // !TOOL_COMMON_H